//
//  CarListView.h
//  car
//
//  Created by chenxu on 15/3/18.
//  Copyright (c) 2015年 chenxu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Car.h"

typedef void(^CarSelectBlock)(Car *car);//选择某个car
typedef void(^CarModifyBlock)(Car *car);//编辑某个car
typedef void(^PushToAddCarViewBlock)();//编辑某个car

@interface CarListView : UIView<UITableViewDataSource, UITableViewDelegate>


- (id)initWithFrame:(CGRect)frame cars:(NSArray *)cars selectblock:(CarSelectBlock)selectblock modifyblock:(CarModifyBlock)modifyblock pushblock:(PushToAddCarViewBlock)pushblock;
- (void)refreshUI;
- (void)refreshToQueryData;
- (void)tabBarItemClicked;
- (void)pushToAddCarView;
@end
